package edison.jcr.nodetype;

import javax.jcr.nodetype.ConstraintViolationException;
import javax.jcr.nodetype.NodeDefinitionTemplate;
import edison.jcr.SessionContext;

public class NodeDefinitionTemplateImpl extends NodeDefinitionImpl implements NodeDefinitionTemplate {

	NodeDefinitionTemplateImpl(SessionContext context) {
		super(context);
	}

	public void setName(String name) throws ConstraintViolationException {
		this.name = name;

	}

	public void setAutoCreated(boolean autoCreated) {
		this.isAutoCreated = autoCreated;

	}

	public void setMandatory(boolean mandatory) {
		this.isMandatory = mandatory;

	}

	public void setOnParentVersion(int opv) {
		this.onParentVersionAction = opv;

	}

	public void setProtected(boolean protectedStatus) {
		this.isProtected = protectedStatus;

	}

	public void setRequiredPrimaryTypeNames(String[] names) throws ConstraintViolationException {
		this.requiredPrimaryTypeNames = names;

	}

	public void setDefaultPrimaryTypeName(String name) throws ConstraintViolationException {
		this.defaultPrimaryTypeName = name;

	}

	public void setSameNameSiblings(boolean allowSameNameSiblings) {
		this.isAllowsSameNameSiblings = allowSameNameSiblings;

	}

}